package cn.shutdown.demo.jvm;

/**
 * -Xmx20m -Xms20m -Xmn1m -XX:SurvivorRatio=2 -XX:+PrintGCDetails
 * @author jiangwujie
 * @date 2021/6/15
 */
public class NewSizeDemo {
    public static void main(String[] args) {
        byte[] b = null;
        for (int i = 0; i < 10; i++) {
            b = new byte[1 * 1024 * 1024];
            System.out.println("分配1M内存" + b);
        }
    }
}
